<template>
  <div>
    <el-row>
      <el-col :span="16" :offset="4">
        <div class="lectureClass">
          <h1>{{ lecture.lectureName }}</h1>
          <h3>开始时间：{{ lecture.lectureStarttime }}</h3>
          <h3>结束时间：{{ lecture.lectureStoptime }}</h3>
          <h3>举办机构：{{ lecture.lectureHold }}</h3>
          <h3>举办场地：{{ lecture.lecturePlace }}</h3>
          <h3>联系人：{{ lecture.lectureContacts }}</h3>
          <h3>联系电话：{{ lecture.lectureTell }}</h3>
          <h3>举办方地址：{{ lecture.lectureAddress }}</h3>
          <h2>宣讲说明</h2>
          <h3>{{ details.recruitRemake }}</h3>
        </div>

      </el-col>
    </el-row>

  </div>
</template>
<script>
import { getLecture } from '@/api/zua/lecture'
import { getRecruit } from '@/api/zua/recruit'

export default ({
  data() {
    return {
      lecture: {},
      details: {}
    }
  },
  async created() {
    this.lecture.lectureId = this.$route.params && this.$route.params.lectureId
    await this.getLectureList(this.lecture.lectureId)
    // console.log(this.lecture)
    // this.lecture.map(item => {
    //   item.createTime = this.parseTime(item.createTime, '{y}-{m}-{d}')
    // })
    this.getDetailsList(this.lecture.recruitId)
  },
  methods: {
    async getLectureList(lectureId) {
      await getLecture(lectureId).then(res => {
        console.log(res)
        this.lecture = res.data
      })
    },
    getDetailsList(id) {
      getRecruit(id).then(res => {
        this.details = res.data
      })
    }
  }

})
</script>
<style  scoped>
.lectureClass {
    margin-top: 25px;
    min-height: 600px;
    background: #f9f9f9;
    border: 1px solid #cccccc;
    float: right;
    width: 100%;
    white-space: normal;
    word-break: break-all;
    font-size: 14px;
    line-height: 25px;
}
h1{
    margin-top: 30px;
    text-align: center;
}
h2{
    font-family: 微软雅黑, "Microsoft YaHei";
    padding-left: 70px;
    font-size: 20px;
    margin-left: 30px;
    font-size: 18px;
    color: #666666;
    line-height: 35px;
}
h3{
    font-family: 微软雅黑, "Microsoft YaHei";
    padding-left: 70px;
    font-size: 20px;
    margin-left: 30px;
    font-size: 13px;
    color: #666666;
    line-height: 35px;
}
</style>
